<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        .test {
            position: relative;
            width: 100px;
            height: 100px;
        }
    </style>
</head>

<body>
    <div class="test"></div>
    <script src="qrcode.min.js"></script>
    <script>
        var qrcodeLink = location.href;
        var qrcode = new QRCode(document.querySelector(".test"), {
            text: qrcodeLink,
            width: 100,
            height: 100,
            colorDark: "#ac182d",
            colorLight: "#ffffff",
            correctLevel: QRCode.CorrectLevel.H
        });
    </script>
</body>

</html>